import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import store from '@/store'
import MessageBox from '@/components/dialog'
import * as echarts from 'echarts'
import VueRouter from 'vue-router' // 引入VueRouter
import router from './router' // 引入路由器
import {deleteRequest,postRequest,putRequest,getRequest} from './axios/index'
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)
Vue.config.productionTip = false
Vue.prototype.postRequest=postRequest;
Vue.prototype.deleteRequest=deleteRequest;
Vue.prototype.putRequest=putRequest;
Vue.prototype.getRequest=getRequest;
Vue.prototype.$MessageBox = MessageBox
Vue.prototype.$echarts = echarts;
Vue.use(VueRouter) // 应用插件
Vue.use(ElementUI);
Vue.use(MessageBox)
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  store,
  router:router,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')
